<include file="Core:Public:header" />
{:W('Navigation')}
<div class="body-right peibei">
	<div class="row-table">
		<div class="row-table-title">添加员工配备</div>
		<div class="row-table-body">
			<form class="form-horizontal " action="{:U('hrm/peibei/add')}" method="post">
				<p class="form-title">添加员工配备&nbsp;&nbsp;<a href="javascript:history.go(-1);">返回</a></p>
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">选择员工</label>
					<div class="col-sm-4">
						<input type="hidden" name="user_id" id="to_user_id" value="" />
						<input class="form-control" type="text" name="to_name" id="to_name" value=""/><span class="color-red"><strong>*必填</strong></span>
					</div>
				</div>
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">配备信息</label>
					<div class="col-sm-8">
						<label class="checkbox-inline">
					      <input name="peibei[]" type="checkbox" value="1"> 箱子
					  	</label>
					   	<label class="checkbox-inline">
					      <input name="peibei[]" type="checkbox" value="2">  腰包
					   	</label>
					   	<label class="checkbox-inline">
					      <input name="peibei[]" type="checkbox" value="3"> 工服
					   	</label>
					   	<label class="checkbox-inline">
					      <input name="peibei[]" type="checkbox" value="4"> 工牌
					   	</label>
					   	<label class="checkbox-inline">
					      <input name="peibei[]" type="checkbox" value="5"> 雨衣
					   	</label>
					   	<label class="checkbox-inline">
					      <input name="peibei[]" type="checkbox" value="6"> Polo衫
					   	</label>
					   	<label class="checkbox-inline">
					      <input name="peibei[]" type="checkbox" value="7"> 头盔
					   	</label>
					   	<span class="color-red"><strong>*必填</strong></span>
					</div>
				</div>
				<div class="form-group">
					<label for="name" class="col-sm-2 control-label">配备备注</label>
					<div class="col-sm-4">
						<textarea name="remark" class="col-sm-8 form-control" style="min-height:150px;"></textarea>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label"></label>
					<div class="col-sm-3">
						<input name="submit" class="btn btn-primary" type="submit" value="保存"/>&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="button" class="btn" value="取消" onclick="javascript:history.go(-1);"/>
					</div>
				</div>
			</form>	
		</div>
	</div>
</div>
<div class="clear"></div>
<script>
	/**
	 * 选择员工
	 **/
	$('#to_name').click(function(){
		$('#alert').modal({
			show:true,
			remote:'{:U("core/user/getuserrindex")}'
		});
	});
	

</script>
<include file="Core:Public:alert" />
<include file="Core:Public:footer" />